package com.zheng.upms.common.constant;

import com.zheng.common.base.BaseConstants;

/**
 * upms系统常量类
 * Created by shuzheng on 2017/2/18.
 */
public class UpmsConstant extends BaseConstants {

    /** 任务调度的参数key */
    public static final String JOB_PARAM_KEY    = "jobParam";

    public static final String UPMS_TYPE = "zheng.upms.type";
    //Redis字典缓存前缀
    public static final String REDIS_UPMS_DATA_DICT_LIST_PREFIX = "upms_data_dict_list";
    //Redis系统参数前缀
    public static final String REDIS_UPMS_SYSTEM_PARAM_PREFIX = "upms_system_param";

    /**
     * 定时任务状态
     *
     */
    public enum JobStatus {

        /**
         * 暂停
         */
        PAUSE(0),
        /**
         * 正常
         */
        NORMAL(1);


        private int value;

        private JobStatus(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }
}
